package com.xzz.feign;

import com.xzz.domain.Login;
import com.xzz.feign.feignFallback.LoginFeignClientFallbackFactory;
import com.xzz.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-uaa", fallbackFactory = LoginFeignClientFallbackFactory.class)
@RequestMapping("/login")
public interface LoginFeignClient {

    @RequestMapping(value="/save",method= RequestMethod.POST)
    public JSONResult saveOrUpdate(@RequestBody Login login);

}